﻿using UnityEngine;
using System.Collections;

public class Shoot : MonoBehaviour
{
	public GameObject bullet;

	void Update ()
	{
		if(Input.GetKeyDown(KeyCode.Space))
		{
			Instantiate(bullet, transform.position, Quaternion.identity);
		}	
	}
}
